<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex and grid</title>
    <style>
        .flex-container {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-around;
            background-color: rgb(236, 227, 227);
        }

        .flex-container p {
            height: 100px;
            width: 100px;
            border: 1px solid cadetblue;
            text-align: center;
            line-height: 100px;
            border-radius: 10px;
        }

    </style>
</head>

<body>
    <header>
        <h1>布局练习</h1>
    </header>
    <main>
        <section>
            <h2>flexbox</h2>

            <div class="flex-container">
                <p>浅喜似苍狗</p>
                <p>深爱如长风</p>
                <p>所爱隔山海</p>
                <p>愿山海可平</p>
            </div>
        </section>

    </main>
    <footer>

    </footer>
</body>

</html>
